import com.typesafe.sbt.SbtStartScript
import com.earldouglas.xsbtwebplugin.WebPlugin

name := "Scala Lift Arduino"

version := "0.0.1"

organization := "net.liftweb"

scalaVersion := "2.10.4"

resolvers ++= Seq(
  "snapshots" at "https://artifactory.its.monash.edu/artifactory/repo/",
  "releases" at "https://artifactory.its.monash.edu/artifactory/repo/"
)

seq(webSettings :_*)

seq(com.typesafe.sbt.SbtStartScript.startScriptForWarSettings:_*)

unmanagedResourceDirectories in Test <+= (baseDirectory) { _ / "src/main/webapp" }

scalacOptions ++= Seq("-deprecation", "-unchecked")

credentials += Credentials("Artifactory Realm","artifactory.its.monash.edu","checkin","checkin")

libraryDependencies ++= {
  val liftVersion = "2.6-M3"
  Seq(
    "org.scala-lang" % "scala-actors" % "2.10.4",
    "net.liftweb"       %% "lift-webkit"        % liftVersion        % "compile",
    "net.liftweb"       %% "lift-mapper"        % liftVersion        % "compile",
    "net.liftmodules"   %% "lift-jquery-module_2.6" % "2.5",
    "org.eclipse.jetty" % "jetty-webapp"        % "8.1.7.v20120910"  % "container,test",
    "org.eclipse.jetty" % "jetty-plus"          % "8.1.7.v20120910"  % "container,test", // For Jetty Config
    "org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container,test" artifacts Artifact("javax.servlet", "jar", "jar"),
    "ch.qos.logback"    % "logback-classic"     % "1.0.6",
    "org.specs2"        %% "specs2"             % "1.14"             % "test",
    "commons-io" % "commons-io" % "1.4",
    "org.apache.httpcomponents" % "httpclient" % "4.1",
    "net.sourceforge.htmlcleaner" % "htmlcleaner" % "2.2",
    "com.h2database"    % "h2"                  % "1.3.167",
    "monash" %% "uxelements" % "0.6.+",
	"org.rxtx" % "rxtx" % "2.1.7" % "compile, test",
	"ch.qos.logback" % "logback-classic" % "0.9.26"
  )
}
